import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: Hello
    }, {
      path: '/table',
      name: 'table',
      component: () => System.import('../components/table/index')
    }, {
      path: '/simple_form',
      name: 'simple_form',
      component: () => System.import('../components/demos/simpleForm/index')
    },
    {
      path: '/lifecycle',
      name: 'lifecycle',
      component: () => System.import('../components/lifecycle')
    }
  ]
})
